using System;
using System.Collections.Generic;

namespace Wikey.Entity
{
    public class Permission  : Entity<int>
    {
        public virtual PermissionGroup Group { get; set; }
        public virtual string Name { get; set; }
    }

    public class PermissionGroup : Entity<int>
    {
        public virtual string Name { get; set; }
    }

    /// <summary>
    /// Enables users the design their pages
    /// </summary>
    public class PageTemplate : Entity<int>
    {
        public virtual string Name { get; set; }
        public virtual string Content { get; set; }
        public virtual IList<PageTemplateZone> Zones { get; set; }
    }

    /// <summary>
    /// Caches the configuration of a zone to enable fast output
    /// </summary>
    public class PageTemplateZoneCache : Entity<int>
    {
        public virtual DateTime LastCache { get; set; }
        public virtual string Content { get; set; }
        public virtual string CssContent { get; set; }
        public virtual string JsContent { get; set; }
    }

    /// <summary>
    /// Defined parts / zone of the template
    /// </summary>
    public class PageTemplateZone : Entity<int>
    {
        
    }
    /// <summary>
    /// Settings to arrange zone within a template.Think as a Css Attributes
    /// </summary>
    public class PageTemplateZoneSetting : Entity<int>
    {
        
    }
}